/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ipo.mm.web.formbeans;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.ipo.mm.ejb.entities.Actions;

/**
 *
 * @author makcro
 */
public class ActionsListBean extends org.apache.struts.validator.ValidatorForm {

    private Actions[] actions;
    private String[] selectedActions;
    private String operation;

    public Actions[] getActions() {
        return actions;
    }

    public void setActions(Actions[] actions) {
        this.actions = actions;
    }

    public String[] getSelectedActions() {
        return selectedActions;
    }

    public void setSelectedActions(String[] selectedActions) {
        this.selectedActions = selectedActions;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    
    
    
    /**
     *
     */
    public ActionsListBean() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = super.validate(mapping, request);
        return errors;
    }

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.operation = null;
        this.actions = new Actions[0];
    }


}
